<template>
  <div class="ly-box">
    <plateNumber @getPlateLicense="getPlateLicense"></plateNumber>
  </div>
</template>

<script>
  import http from "@/http";
  import plateNumber from '../tools/plateNumber/plateNumber'

  export default {
    name: 'parking',
    components: {
      plateNumber
    },
    data() {
      return {

      };
    },
    created: function () {

    },
    methods: {
      getPlateLicense(data){
        this.$router.push({
          path: '/parking/pay',
          query: {
            parkingId: this.$route.query.parkingId,
            plate: data,
          }
        })
        // console.log('组件传出的data',data)
      }
    }
  }
  ;
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->

<style scoped lang="scss">

</style>
